<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<ul class="nav">
				<li><a class="brand" > Money For Nothing </a></li>
				<c:if test="${username !='anonymousUser'}">
					<li><div class="span4 offset5">
						<strong>You're logged as <c:out value="${username}" />. </strong>

					<a class="btn pull-right" href="<c:url value='/logout' />">Logout</a>
					</div></li>
				</c:if>
				<c:if test="${empty username || username == 'anonymousUser' }">
					<li>
						<form class="navbar-form span4 offset5" name='f'
							action="<c:url value='j_spring_security_check' />" method='POST'>
							<c:if test="${not empty error}">
								<div class="errorblock">
									Your login attempt was not successful, try again.<br /> Caused
									: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
								</div>
							</c:if>
							<input type="text" class="input-small" placeholder="Account"
								name="j_username"> <input type="password"
								class="input-small" placeholder="Password" name="j_password">
							<button type="submit" class="btn btn-primary">Sign in</button>
						</form>
					</li>
				</c:if>
			</ul>
		</div>
	</div>
</div>